<!DOCTYPE html>
{% load static %}
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录页面</title>
    <link rel="stylesheet" href="{% static 'users/bulma.css' %}">
    <link rel="stylesheet" href="{% static 'users/js/all.min.js' %}">
    <style>
        /* 自定义样式 */
        .hero.is-fullheight {
            background: linear-gradient(135deg, #4caf50, #81c784); /* 绿色系渐变背景 */
        }
        .box {
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }
        .title {
            color: #363636;
            margin-bottom: 1rem;
        }
        .subtitle {
            color: #666;
            margin-bottom: 1.5rem;
        }
        .input, .button {
            border-radius: 8px;
        }
        .button.is-link {
            background-color: #4caf50; /* 绿色按钮 */
            transition: background-color 0.3s ease;
        }
        .button.is-link:hover {
            background-color: #388e3c; /* 深绿色悬停效果 */
        }
        .has-text-centered a {
            color: #4caf50; /* 绿色超链接 */
            text-decoration: none;
        }
        .has-text-centered a:hover {
            text-decoration: underline;
        }
        .icon {
            margin-right: 0.5rem;
        }
        .checkbox {
            color: #666;
        }
        .checkbox:hover {
            color: #4caf50;
        }
        .title-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
    </style>
</head>
<body>
<section class="hero is-fullheight">
    <div class="hero-body">
        <div class="container">
            <div class="columns is-centered">
                <div class="column is-5-tablet is-4-desktop is-3-widescreen">
                    <div class="box">
                        <!-- 标题和副标题容器 -->
                        <div class="title-container">
                            <h1 class="title">
                                <span class="icon">
                                    <i class="fas fa-leaf"></i> <!-- 绿色系图标 -->
                                </span>
                                九问博客
                            </h1>
                            <p class="subtitle">登录您的账号</p>
                        </div>
                        <hr class="dropdown-divider">
                        <form action="" method="post">
                            {% csrf_token %}
                            <div class="field">
                                <label class="label">用户名</label>
                                <div class="control has-icons-left">
                                    <input class="input" type="text" name="username" placeholder="请输入用户名" required>
                                    <span class="icon is-small is-left">
                                        <i class="fas fa-user"></i>
                                    </span>
                                </div>
                            </div>
                            <div class="field">
                                <label class="label">密码</label>
                                <div class="control has-icons-left">
                                    <input class="input" type="password" name="password" placeholder="请输入密码" required>
                                    <span class="icon is-small is-left">
                                        <i class="fas fa-lock"></i>
                                    </span>
                                </div>
                            </div>
                            <div class="field">
                                <div class="control">
                                    <label class="checkbox">
                                        <input type="checkbox"> 记住我
                                    </label>
                                </div>
                            </div>
                            <div class="field">
                                <div class="control">
                                    <button type="submit" class="button is-link is-fullwidth">
                                        <span class="icon">
                                            <i class="fas fa-sign-in-alt"></i>
                                        </span>
                                        <span>登录</span>
                                    </button>
                                </div>
                            </div>
                            <div class="has-text-centered">
                                <a href="{% url 'users:forget_pwd' %}">忘记密码？</a>
                            </div>
                        </form>
                        <hr class="dropdown-divider">
                        <div class="has-text-centered mt-4">
                            <span>没有账号？</span>
                            <a href="{% url 'users:register' %}">立即注册</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
</body>
</html>